﻿using System;
using System.Collections.Generic;
using View.Data;

namespace View.Control.Modules
{
    public partial class SalesPerformance : DashboardTutorialControl {
        public SalesPerformance() {
            InitializeComponent();
        }
        protected override IList<DataSourceInfo> LoadData() {
            SalesPerformanceDataGenerator dataGenerator = new SalesPerformanceDataGenerator(DataLoader.LoadSales());
            dataGenerator.Generate();
            return new DataSourceInfo[] { 
                new DataSourceInfo("Monthly Sales", dataGenerator.MonthlySales), 
                new DataSourceInfo("Total Sales", dataGenerator.TotalSales),
                new DataSourceInfo("Key Metrics", dataGenerator.KeyMetrics)
            };
        }
    }
}
